import request from '@/utils/request'

export const adminAddGoodsData = (addForm) => {
  return request.post('goods/goodsInfo/adminAddGoods', addForm)
}

export const admingGetGoodsData = (queryPageInfo) => {
  return request.get('goods/goodsInfo/adminGetGoodsList', {
    params: {
      pageNum: queryPageInfo.pageNum,
      pageSize: queryPageInfo.pageSize,
      goodsSelect: queryPageInfo.goodsSelect,
      goodsState: queryPageInfo.goodsState,
      goodsName: queryPageInfo.goodsName
    }
  })
}

export const addGoodsIndexData = () => {
  return request.post('goods/goodsInfo/addGoodsIndex')
}

export const updateGoodsSearchData = () => {
  return request.post('goods/goodsInfo/updateGoodsSearch')
}
